<?php

/**
 * @copyright   FOSP
 * @version     20120411
 * @todo        Abstract access table rating_player
 * @name        Fpt_Business_RatingPlayer_Adapter_Abstract
 * @author      QuangTM 
 */
abstract class Fpt_Business_RatingPlayer_Adapter_Abstract
{

    /**
     *
     * @var Fpt_Business_RatingPlayer_Adapter_Abstract
     */
    protected static $instance;

    protected function __construct()
    {
        
    }
    
    /**
     * Get Fpt_Business_RatingPlayer_Adapter_Abstract's instance
     * @return Fpt_Business_RatingPlayer_Adapter_Abstract
     * @author QuangTM
     */
    abstract public static function getInstance();
    
    /**
     * Add user rated for player and match
     * @param array $params
     * @return boolean 
     * @author QuangTM
     */
    public function addRatedPlayer($params)
    {
        return FALSE;
    }
    
    /**
     * Check user is rated on match
     * @param int $userID
     * @param int $matchID
     * @return boolean 
     * @author QuangTM
     */
    public function isRated($userID, $matchID)
    {
        return FALSE;
    }
}